package com.cmbc.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
 * 线程池
 * @author MilchstraBe_
 *
 */
public class ThreadPoolUtil {
	private static ExecutorService executorService=new ThreadPoolExecutor(10, 20, 0, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>());
	public static void Run(Runnable task) {
		executorService.execute(task);
	}
}
